package com.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.entity.CommonUser;
import com.shop.entity.MerchantEmployee;
import com.shop.entity.MerchantMerchant;
import com.shop.entity.SupplierSupplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (CommonUser)表数据库访问层
 *
 * @author makejava
 * @since 2020-11-21 10:33:47
 */
@Mapper
public interface CommonUserMapper extends BaseMapper<CommonUser> {

   CommonUser getByAccount (String account);

    MerchantMerchant getMerchantByUserId(Integer id);

    SupplierSupplier getSupplierByUserId(Integer id);

    MerchantEmployee getEmployeeByUserId(Integer id);

    List<CommonUser> getAllUser(@Param("status") String status);
}
